package main

import(
	"image/png"
	"os"
	"github.com/boombuler/barcode"
	"github.com/boombuler/barcode/qr"
)

func main(){
	qrCode,_:=qr.Encode("http://m.baidu.com",qr.M,qr.Auto)
	qrCode,_=barcode.Scale(qrCode,200,200)
	file,_:=os.Create("baidu.png")
	defer file.Close()
	png.Encode(file,qrCode)
}
